<%@ page contentType="text/html;charset=UTF-8" language="java" trimDirectiveWhitespaces="true" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="edge"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="format-detection" content="telphone=no, email=no"/>
    <meta name="renderer" content="webkit"/>
    <meta name="HandheldFriendly" content="true"/>
    <meta name="MobileOptimized" content="320"/>
    <meta name="screen-orientation" content="portrait"/>
    <meta name="x5-orientation" content="portrait"/>
    <meta name="full-screen" content="yes"/>
    <meta name="x5-fullscreen" content="true"/>
    <meta name="browsermode" content="application"/>
    <meta name="x5-page-mode" content="app"/>
    <meta name="msapplication-tap-highlight" content="no"/>
    <meta content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport"/>
    <link href="/resources/frontcss/cart.css" rel="stylesheet"  type="text/css" >
    <title>荩美国际商城</title>
    <style>
        .top-cot{ width:100%; height:2.2rem; line-height:2.2rem; background:#28163d; color:#fff; text-align:center; font-size:16px;}
    </style>

</head>
<body style="background-color: #fff;overflow-x:hidden;">
    <div class="top-cot">
        <a class="bt_prev" href="javascript:window.history.back();">
            <span class="prev rotate45"></span>
            <span class="prev rotate135"></span>
        </a>
        我的团队</div>
    <div class="total-list2 clearfix">
        <c:choose>
            <c:when test="${empty list}">
                <p style="text-align: center;">暂时还没有团队成员</p>
            </c:when>
            <c:otherwise>
                <c:forEach items="${list}" var="e">
                    <ul>
                        <li class="good-center2" style="width: auto;">
                            <p class="fl">账号:<span class="single_price">${e.nickName}(${e.account})</span></p>
                            <p class="fl">姓名:<span class="single_price">${e.realName}(
                                <c:choose>
                                    <c:when test="${e.userType eq 'Partner'}">区域合伙人</c:when>
                                    <c:when test="${e.userType eq 'General'}">全国总代</c:when>
                                    <c:when test="${e.userType eq 'Gold'}">金牌代理</c:when>
                                    <c:otherwise>普通用户</c:otherwise>
                                </c:choose>
                                )</span></p>
                            <p class="fl">团队人数：${e.userCnt} &nbsp;&nbsp; 订单数:${e.orderCnt} &nbsp;&nbsp;团队业绩：${e.qyyj}元</p>
                        </li>
                        <li class="good-wd">
                            <a class="db-produce"  href="/front/user/team/list?id=${e.id}" style="margin-left: 10px;">查看团队</a>
                            <a class="db-produce" href="/front/user/order/listUserOrder?id=${e.id}">查看订单</a>
                        </li>
                    </ul>
                </c:forEach>
            </c:otherwise>
        </c:choose>

    </div>
</body>
</html>